package com.thon.dao.user;

import java.util.Date;
import java.util.List;

import com.thon.dao.util.BaseDao;
import com.thon.dao.util.Page;
import com.thon.entity.system.Users;
import com.thon.entity.user.User;

/**
 * @author THON
 * @mail thon.ju@meet-future.com
 * @date 2012-2-13 下午05:17:17
 * @description
 */
public interface UserDao extends BaseDao<User> {

	public User findByLoginName(String loginName, String status);

	public User findByEmail(String email);

	public User findByName(String name);
	
	public User findByName(String name, String status);
	
	public List<User> listAllUsers();

	public Page<User> findUserPage(Page<User> page, String role);

	public Page<User> listUserPage(Page<User> page, String by, String condition);

	public User getUser(Integer id);

	public Page<User> findUserPage(Page<User> userPage);
	
	public Page<User> findUserByName(Page<User>page,String name);
	
}
